﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Crear.aspx.vb" Inherits="Libreria.Formulario_web17" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
    #Text1
    {
        height: 20px;
        width: 186px;
    }
    #Button1
    {
        width: 80px;
    }
    .style1
    {
        width: 100%;
    }
    .style2
    {
        width: 186px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:FormView ID="FormView1" runat="server" CellPadding="4" 
    DataKeyNames="title_id" DataSourceID="SqlDataSource1" DefaultMode="Insert" 
    ForeColor="#333333">
    <EditItemTemplate>
        title_id:
        <asp:Label ID="title_idLabel1" runat="server" Text='<%# Eval("title_id") %>' />
        <br />
        title:
        <asp:TextBox ID="titleTextBox" runat="server" Text='<%# Bind("title") %>' />
        <br />
        type:
        <asp:TextBox ID="typeTextBox" runat="server" Text='<%# Bind("type") %>' />
        <br />
        pub_id:
        <asp:TextBox ID="pub_idTextBox" runat="server" Text='<%# Bind("pub_id") %>' />
        <br />
        price:
        <asp:TextBox ID="priceTextBox" runat="server" Text='<%# Bind("price") %>' />
        <br />
        advance:
        <asp:TextBox ID="advanceTextBox" runat="server" Text='<%# Bind("advance") %>' />
        <br />
        royalty:
        <asp:TextBox ID="royaltyTextBox" runat="server" Text='<%# Bind("royalty") %>' />
        <br />
        ytd_sales:
        <asp:TextBox ID="ytd_salesTextBox" runat="server" 
            Text='<%# Bind("ytd_sales") %>' />
        <br />
        notes:
        <asp:TextBox ID="notesTextBox" runat="server" Text='<%# Bind("notes") %>' />
        <br />
        pubdate:
        <asp:TextBox ID="pubdateTextBox" runat="server" Text='<%# Bind("pubdate") %>' />
        <br />
        <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
            CommandName="Update" Text="Actualizar" />
        &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
            CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
    </EditItemTemplate>
    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
    <InsertItemTemplate>
        &nbsp;<br />&nbsp;<table class="style1">
            <tr>
                <td>
                    title_id:</td>
                <td class="style2">
                    <asp:TextBox ID="title_idTextBox" runat="server" 
                        Text='<%# Bind("title_id") %>' />
                </td>
            </tr>
            <tr>
                <td>
                    title:</td>
                <td class="style2">
                    <asp:TextBox ID="titleTextBox" runat="server" Text='<%# Bind("title") %>' />
                </td>
            </tr>
            <tr>
                <td>
                    type:
                </td>
                <td class="style2">
                    <asp:TextBox ID="typeTextBox" runat="server" Text='<%# Bind("type") %>' />
                </td>
            </tr>
            <tr>
                <td>
                    pub_id:</td>
                <td class="style2">
                    <asp:TextBox ID="pub_idTextBox" runat="server" Text='<%# Bind("pub_id") %>' />
                </td>
            </tr>
            <tr>
                <td>
                    price:
                </td>
                <td class="style2">
                    <asp:TextBox ID="priceTextBox" runat="server" Text='<%# Bind("price") %>' />
                </td>
            </tr>
            <tr>
                <td>
                    advance:
                </td>
                <td class="style2">
                    <asp:TextBox ID="advanceTextBox" runat="server" Text='<%# Bind("advance") %>' />
                </td>
            </tr>
            <tr>
                <td>
                    royalty:
                </td>
                <td class="style2">
                    <asp:TextBox ID="royaltyTextBox" runat="server" Text='<%# Bind("royalty") %>' />
                </td>
            </tr>
            <tr>
                <td>
                    ytd_sales:
                </td>
                <td class="style2">
                    <asp:TextBox ID="ytd_salesTextBox" runat="server" 
                        Text='<%# Bind("ytd_sales") %>' />
                </td>
            </tr>
            <tr>
                <td>
                    notes:</td>
                <td class="style2">
                    <asp:TextBox ID="notesTextBox" runat="server" Text='<%# Bind("notes") %>' />
                </td>
            </tr>
            <tr>
                <td>
                    pubdate:
                </td>
                <td class="style2">
                    <asp:TextBox ID="pubdateTextBox" runat="server" Text='<%# Bind("pubdate") %>' />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                        CommandName="Insert" Text="Insertar" />
                </td>
                <td class="style2">
                    <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" 
                        CommandName="Cancel" Text="Cancelar" />
                </td>
            </tr>
        </table>
        <br />
        <br />
        &nbsp;<br />
<br />
        <br />
        <br />
        <br />
        &nbsp;<br />
<br />
        &nbsp;
    </InsertItemTemplate>
    <ItemTemplate>
        title_id:
        <asp:Label ID="title_idLabel" runat="server" Text='<%# Eval("title_id") %>' />
        <br />
        title:
        <asp:Label ID="titleLabel" runat="server" Text='<%# Bind("title") %>' />
        <br />
        type:
        <asp:Label ID="typeLabel" runat="server" Text='<%# Bind("type") %>' />
        <br />
        pub_id:
        <asp:Label ID="pub_idLabel" runat="server" Text='<%# Bind("pub_id") %>' />
        <br />
        price:
        <asp:Label ID="priceLabel" runat="server" Text='<%# Bind("price") %>' />
        <br />
        advance:
        <asp:Label ID="advanceLabel" runat="server" Text='<%# Bind("advance") %>' />
        <br />
        royalty:
        <asp:Label ID="royaltyLabel" runat="server" Text='<%# Bind("royalty") %>' />
        <br />
        ytd_sales:
        <asp:Label ID="ytd_salesLabel" runat="server" Text='<%# Bind("ytd_sales") %>' />
        <br />
        notes:
        <asp:Label ID="notesLabel" runat="server" Text='<%# Bind("notes") %>' />
        <br />
        pubdate:
        <asp:Label ID="pubdateLabel" runat="server" Text='<%# Bind("pubdate") %>' />
        <br />

    </ItemTemplate>
    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
</asp:FormView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:pubsConnectionString3 %>" 
    SelectCommand="SELECT * FROM [titles]"></asp:SqlDataSource>
</asp:Content>
